home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gMute, gFade
- puppetSound("mute/unmute sound")
- vorigMember = the member of sprite the clickOn
- set the member of sprite the clickOn to member("mute music dn")
- updateStage()
- repeat while the stillDown
- nothing()
- end repeat
- set the member of sprite the clickOn to vorigMember
- updateStage()
- if gMute = 0 then
- set the member of sprite the clickOn to member("music muted button")
- set the volume of sound 2 to 0
- gMute = 1
- else
- set the member of sprite the clickOn to member("music on button")
- if gFade <> 1 then
- set the volume of sound 2 to 255
- end if
- gMute = 0
- end if
- end
-
- on mouseEnter me
- if the member of sprite me.spriteNum = member("music on button") then
- set the member of sprite 23 to member("mute music prompt")
- else
- set the member of sprite 23 to member("unmute music prompt")
- end if
- updateStage()
- end
-
- on mouseLeave
- set the member of sprite 23 to member("blank prompt")
- updateStage()
- end
-